import pymongo
import uuid

print(uuid.uuid4().hex)

# client = pymongo.MongoClient("mongodb://127.0.0.1:27017")
# print(client.list_database_names())
# # print(client.list_databases())
# spider = client["spider"]

# print(spider)

# print(spider.list_collection_names())

# print(spider.LianJiaSpider.find_one())


# db = spider["LianjiaData"]

# # print(db.lis)
# import time
# # for data in db.find():
# #     time.sleep(2)
# #     print(data.get("url"))
# print(len(db.distinct("url")))
# print(db.count())


